package Single;

public class Singleton {
    //饿汉模式
    private static Singleton singleton=new Singleton();

    public static Singleton getSingleton() {
        return singleton;
    }

    public Singleton(){
        //构造方法
    }
}
